home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 17 / CU Amiga Magazine's Super CD-ROM 17 (1997)(EMAP Images)(GB)[!][issue 1997-12].iso / CUCD / Programming / DiceSource / include / amiga20 / clib / intuition_protos.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-01-11  |  10.1 KB  |  219 lines

  1. #ifndef  CLIB_INTUITION_PROTOS_H
  2. #define  CLIB_INTUITION_PROTOS_H
  3. /*
  4. **    $Filename: clib/intuition_protos.h $
  5. **    $Release: 2.04 $
  6. **    $Revision: 30.156 $
  7. **    $Date: 1995/01/11 05:18:10 $
  8. **
  9. **    C prototypes. For use with 32 bit integers only.
  10. **
  11. **    (C) Copyright 1990 Commodore-Amiga, Inc.
  12. **        All Rights Reserved
  13. */
  14. /* "intuition.library" */
  15. #ifndef  INTUITION_INTUITION_H
  16. #include <intuition/intuition.h>
  17. #endif
  18. /* Public functions OpenIntuition() and Intuition() are intentionally */
  19. /* not documented. */
  20. void OpenIntuition( void );
  21. void Intuition( struct InputEvent *iEvent );
  22. UWORD AddGadget( struct Window *window, struct Gadget *gadget,
  23.     unsigned long position );
  24. BOOL ClearDMRequest( struct Window *window );
  25. void ClearMenuStrip( struct Window *window );
  26. void ClearPointer( struct Window *window );
  27. BOOL CloseScreen( struct Screen *screen );
  28. void CloseWindow( struct Window *window );
  29. LONG CloseWorkBench( void );
  30. void CurrentTime( ULONG *seconds, ULONG *micros );
  31. BOOL DisplayAlert( unsigned long alertNumber, UBYTE *string,
  32.     unsigned long height );
  33. void DisplayBeep( struct Screen *screen );
  34. BOOL DoubleClick( unsigned long sSeconds, unsigned long sMicros,
  35.     unsigned long cSeconds, unsigned long cMicros );
  36. void DrawBorder( struct RastPort *rp, struct Border *border, long leftOffset,
  37.     long topOffset );
  38. void DrawImage( struct RastPort *rp, struct Image *image, long leftOffset,
  39.     long topOffset );
  40. void EndRequest( struct Requester *requester, struct Window *window );
  41. struct Preferences *GetDefPrefs( struct Preferences *preferences, long size );
  42. struct Preferences *GetPrefs( struct Preferences *preferences, long size );
  43. void InitRequester( struct Requester *requester );
  44. struct MenuItem *ItemAddress( struct Menu *menuStrip,
  45.     unsigned long menuNumber );
  46. BOOL ModifyIDCMP( struct Window *window, unsigned long flags );
  47. void ModifyProp( struct Gadget *gadget, struct Window *window,
  48.     struct Requester *requester, unsigned long flags,
  49.     unsigned long horizPot, unsigned long vertPot,
  50.     unsigned long horizBody, unsigned long vertBody );
  51. void MoveScreen( struct Screen *screen, long dx, long dy );
  52. void MoveWindow( struct Window *window, long dx, long dy );
  53. void OffGadget( struct Gadget *gadget, struct Window *window,
  54.     struct Requester *requester );
  55. void OffMenu( struct Window *window, unsigned long menuNumber );
  56. void OnGadget( struct Gadget *gadget, struct Window *window,
  57.     struct Requester *requester );
  58. void OnMenu( struct Window *window, unsigned long menuNumber );
  59. struct Screen *OpenScreen( struct NewScreen *newScreen );
  60. struct Window *OpenWindow( struct NewWindow *newWindow );
  61. BOOL OpenWorkBench( void );
  62. void PrintIText( struct RastPort *rp, struct IntuiText *iText, long left,
  63.     long top );
  64. void RefreshGadgets( struct Gadget *gadgets, struct Window *window,
  65.     struct Requester *requester );
  66. UWORD RemoveGadget( struct Window *window, struct Gadget *gadget );
  67. /* The official calling sequence for ReportMouse is given below. */
  68. /* Note the register order.  For the complete story, read the ReportMouse */
  69. /* autodoc. */
  70. void ReportMouse( long flag, struct Window *window );
  71. void ReportMouse1( struct Window *window, long flag );
  72. BOOL Request( struct Requester *requester, struct Window *window );
  73. void ScreenToBack( struct Screen *screen );
  74. void ScreenToFront( struct Screen *screen );
  75. BOOL SetDMRequest( struct Window *window, struct Requester *requester );
  76. BOOL SetMenuStrip( struct Window *window, struct Menu *menu );
  77. void SetPointer( struct Window *window, UWORD *pointer, long height,
  78.     long width, long xOffset, long yOffset );
  79. void SetWindowTitles( struct Window *window, UBYTE *windowTitle,
  80.     UBYTE *screenTitle );
  81. void ShowTitle( struct Screen *screen, long showIt );
  82. void SizeWindow( struct Window *window, long dx, long dy );
  83. struct View *ViewAddress( void );
  84. struct ViewPort *ViewPortAddress( struct Window *window );
  85. void WindowToBack( struct Window *window );
  86. void WindowToFront( struct Window *window );
  87. BOOL WindowLimits( struct Window *window, long widthMin, long heightMin,
  88.     unsigned long widthMax, unsigned long heightMax );
  89. /*--- start of next generation of names -------------------------------------*/
  90. struct Preferences *SetPrefs( struct Preferences *preferences, long size,
  91.     long inform );
  92. /*--- start of next next generation of names --------------------------------*/
  93. LONG IntuiTextLength( struct IntuiText *iText );
  94. BOOL WBenchToBack( void );
  95. BOOL WBenchToFront( void );
  96. /*--- start of next next next generation of names ---------------------------*/
  97. BOOL AutoRequest( struct Window *window, struct IntuiText *body,
  98.     struct IntuiText *posText, struct IntuiText *negText,
  99.     unsigned long pFlag, unsigned long nFlag, unsigned long width,
  100.     unsigned long height );
  101. void BeginRefresh( struct Window *window );
  102. struct Window *BuildSysRequest( struct Window *window, struct IntuiText *body,
  103.     struct IntuiText *posText, struct IntuiText *negText,
  104.     unsigned long flags, unsigned long width, unsigned long height );
  105. void EndRefresh( struct Window *window, long complete );
  106. void FreeSysRequest( struct Window *window );
  107. void MakeScreen( struct Screen *screen );
  108. void RemakeDisplay( void );
  109. void RethinkDisplay( void );
  110. /*--- start of next next next next generation of names ----------------------*/
  111. APTR AllocRemember( struct Remember **rememberKey, unsigned long size,
  112.     unsigned long flags );
  113. /* Public function AlohaWorkbench() is intentionally not documented */
  114. void AlohaWorkbench( long wbport );
  115. void FreeRemember( struct Remember **rememberKey, long reallyForget );
  116. /*--- start of 15 Nov 85 names ------------------------*/
  117. ULONG LockIBase( unsigned long dontknow );
  118. void UnlockIBase( unsigned long ibLock );
  119. /*--- functions in V33 or higher (distributed as Release 1.2) ---*/
  120. LONG GetScreenData( APTR buffer, unsigned long size, unsigned long type,
  121.     struct Screen *screen );
  122. void RefreshGList( struct Gadget *gadgets, struct Window *window,
  123.     struct Requester *requester, long numGad );
  124. UWORD AddGList( struct Window *window, struct Gadget *gadget,
  125.     unsigned long position, long numGad, struct Requester *requester );
  126. UWORD RemoveGList( struct Window *remPtr, struct Gadget *gadget,
  127.     long numGad );
  128. LONG ActivateWindow( struct Window *window );
  129. void RefreshWindowFrame( struct Window *window );
  130. BOOL ActivateGadget( struct Gadget *gadgets, struct Window *window,
  131.     struct Requester *requester );
  132. void NewModifyProp( struct Gadget *gadget, struct Window *window,
  133.     struct Requester *requester, unsigned long flags,
  134.     unsigned long horizPot, unsigned long vertPot,
  135.     unsigned long horizBody, unsigned long vertBody, long numGad );
  136. /*--- functions in V36 or higher (distributed as Release 2.0) ---*/
  137. LONG QueryOverscan( unsigned long displayID, struct Rectangle *rect,
  138.     long oScanType );
  139. void MoveWindowInFrontOf( struct Window *window,
  140.     struct Window *behindWindow );
  141. void ChangeWindowBox( struct Window *window, long left, long top, long width,
  142.     long height );
  143. struct Hook *SetEditHook( struct Hook *hook );
  144. LONG SetMouseQueue( struct Window *window, unsigned long queueLength );
  145. void ZipWindow( struct Window *window );
  146. /*--- public screens ---*/
  147. struct Screen *LockPubScreen( UBYTE *name );
  148. void UnlockPubScreen( UBYTE *name, struct Screen *screen );
  149. struct List *LockPubScreenList( void );
  150. void UnlockPubScreenList( void );
  151. UBYTE *NextPubScreen( struct Screen *screen, UBYTE *namebuf );
  152. void SetDefaultPubScreen( UBYTE *name );
  153. UWORD SetPubScreenModes( unsigned long modes );
  154. UWORD PubScreenStatus( struct Screen *screen, unsigned long statusFlags );
  155. /**/
  156. struct RastPort *ObtainGIRPort( struct GadgetInfo *gInfo );
  157. void ReleaseGIRPort( struct RastPort *rp );
  158. void GadgetMouse( struct Gadget *gadget, struct GadgetInfo *gInfo,
  159.     WORD *mousePoint );
  160. /* SetIPrefs is system private and not to be used by applications */
  161. void GetDefaultPubScreen( UBYTE *nameBuffer );
  162. LONG EasyRequestArgs( struct Window *window, struct EasyStruct *easyStruct,
  163.     ULONG *idcmpPtr, APTR args );
  164. LONG EasyRequest( struct Window *window, struct EasyStruct *easyStruct,
  165.     ULONG *idcmpPtr, APTR arg1, ... );
  166. struct Window *BuildEasyRequestArgs( struct Window *window,
  167.     struct EasyStruct *easyStruct, unsigned long idcmp, APTR args );
  168. struct Window *BuildEasyRequest( struct Window *window,
  169.     struct EasyStruct *easyStruct, unsigned long idcmp, APTR arg1, ... );
  170. LONG SysReqHandler( struct Window *window, ULONG *idcmpPtr, long waitInput );
  171. struct Window *OpenWindowTagList( struct NewWindow *newWindow,
  172.     struct TagItem *tagList );
  173. struct Window *OpenWindowTags( struct NewWindow *newWindow,
  174.     unsigned long tag1Type, ... );
  175. struct Screen *OpenScreenTagList( struct NewScreen *newScreen,
  176.     struct TagItem *tagList );
  177. struct Screen *OpenScreenTags( struct NewScreen *newScreen,
  178.     unsigned long tag1Type, ... );
  179. /**/
  180. /*    new Image functions */
  181. void DrawImageState( struct RastPort *rp, struct Image *image, long leftOffset,
  182.     long topOffset, unsigned long state, struct DrawInfo *drawInfo );
  183. BOOL PointInImage( unsigned long point, struct Image *image );
  184. void EraseImage( struct RastPort *rp, struct Image *image, long leftOffset,
  185.     long topOffset );
  186. /**/
  187. APTR NewObjectA( struct IClass *class, UBYTE *classID,
  188.     struct TagItem *tagList );
  189. APTR NewObject( struct IClass *class, UBYTE *classID, unsigned long tag1,
  190.     ... );
  191. /**/
  192. void DisposeObject( APTR object );
  193. ULONG SetAttrsA( APTR object, struct TagItem *tagList );
  194. ULONG SetAttrs( APTR object, unsigned long tag1, ... );
  195. /**/
  196. ULONG GetAttr( unsigned long attrID, APTR object, ULONG *storagePtr );
  197. /**/
  198. /*    special set attribute call for gadgets */
  199. ULONG SetGadgetAttrsA( struct Gadget *gadget, struct Window *window,
  200.     struct Requester *requester, struct TagItem *tagList );
  201. ULONG SetGadgetAttrs( struct Gadget *gadget, struct Window *window,
  202.     struct Requester *requester, unsigned long tag1, ... );
  203. /**/
  204. /*    for class implementors only */
  205. APTR NextObject( APTR objectPtrPtr );
  206. struct IClass *MakeClass( UBYTE *classID, UBYTE *superClassID,
  207.     struct IClass *superClassPtr, unsigned long instanceSize,
  208.     unsigned long flags );
  209. void AddClass( struct IClass *class );
  210. /**/
  211. /**/
  212. struct DrawInfo *GetScreenDrawInfo( struct Screen *screen );
  213. void FreeScreenDrawInfo( struct Screen *screen, struct DrawInfo *drawInfo );
  214. /**/
  215. BOOL ResetMenuStrip( struct Window *window, struct Menu *menu );
  216. void RemoveClass( struct IClass *classPtr );
  217. BOOL FreeClass( struct IClass *classPtr );
  218. #endif     /* CLIB_INTUITION_PROTOS_H */
  219.